package cn.gitee.ffmpeg.processed.controller;


import cn.gitee.ffmpeg.processed.dto.ComposeVideoDTO;
import cn.gitee.ffmpeg.processed.handler.FFmpegVideoHandler;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author xuhainan
 * @date 2023/3/10 10:23
 * @region hefei
 */
@RestController
@RequestMapping("/video")
public class ProceedVideoController {

    @Autowired
    private FFmpegVideoHandler fFmpegVideoHandler;


    @PostMapping("/proceed")
    public String proceedVideo(@RequestBody ComposeVideoDTO composeVideoDTO) {
        return fFmpegVideoHandler.processed(composeVideoDTO);
    }


}
